package com.miaoshaoproject.service;

import com.miaoshaoproject.error.BussinessException;
import com.miaoshaoproject.service.model.UserModel;

public interface UserService {
    //通过用户id获取用户对象
    UserModel getUserById(Integer id);
    /**
     * telphone 用户注册手机
     * password 用户加密后的密码
     */
    void register (UserModel userModel) throws BussinessException;
    UserModel validateLogin(String telphone,String entryPassword) throws BussinessException;

    /**
     * 通过缓存获取用户对象
     */
    UserModel getUserModelByIdInCache(Integer id);
}
